/**
 * 基础数据
 */
const base = {

    state: {
        // 菜单信息
        menus: {},
        title: 'vue组件',
    },

    mutations: {
        SET_MENUS: (state, menus) => {
            state.menus = menus;
        },

        SET_TITLE: (state, title) => {
            state.title = title;
        },
    },

    actions: {
        setTitle({ commit }, title) {
            commit('SET_TITLE', title);
        },
    }
};

export default base;
